package com.szecsenyi.patterns.observer;

import com.szecsenyi.patterns.observer.observer.Observer;

public class MainClass {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Server server = new Server();

		Observer mobilPhone = new Mobilphone();
		Observer printer = new Printer();

		server.registerObserver(mobilPhone);
		server.registerObserver(printer);
		server.setStatusMessage("Hello Message");
		server.notifyObservers();
		server.removeObserver(printer);
		server.notifyObservers();
	}

}
